package com.shop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 订单收货地址 实体类。
 *
 * @author 彭新才
 * @since 2024-10-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "订单收货地址")
@Table(value = "shop_order_address")
public class ShopOrderAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地址id
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "地址id")
    private Long id;

    /**
     * 收货人姓名
     */
    @Schema(description = "收货人姓名")
    private String name;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;

    /**
     * 所在省份id
     */
    @Schema(description = "所在省份id")
    private Long provinceId;

    /**
     * 所在城市id
     */
    @Schema(description = "所在城市id")
    private Long cityId;

    /**
     * 所在区id
     */
    @Schema(description = "所在区id")
    private Long regionId;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String detail;

    /**
     * 订单id
     */
    @Schema(description = "订单id")
    private Long orderId;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Timestamp createTime;

}
